package com.hunttown.mes.common.keys;

/**
 * @title: 物联网模块相关缓存Key
 * @author: wangjunfu
 * @date: 2020年12月31日 9:06
 * @description: 缓存Key
 */
public class IotKeyConstants {

    //常用的过期时间（半年）
    public static final Integer expriseTimeDay180 = 180 * 24 * 60 * 60;

    //region 通信协议
    public static final String COMMUNICATION_INFO_KEY_NAME = KeyConstants.getPrefix() + "_communication_signcode_";
    //endregion

    //region 通道管理
    public static final String PASSAGEWAY_INFO_KEY_ID = KeyConstants.getPrefix() + "_passageway_id_";
    //endregion

    //region 通道配置
    public static final String PASSAGEWAY_CONFIG_INFO_KEY_DTUWAYID = KeyConstants.getPrefix() + "_passageway_config_dtuwayid_";
    //endregion

    //region 滞纳金规则
    public static final String LATEFEE_INFO_KEY_ID = KeyConstants.getPrefix() + "_latefee_id_";
    //endregion

    //region 日电价规则
    public static final String CHARGERULE_INFO_KEY_ID = KeyConstants.getPrefix() + "_chargerule_id_";

    //当前计费电价规则（日）
    public static final String CHARGERULE_CURRENT_DAY_KEY = KeyConstants.getPrefix() + "_chargerule_current_day_";

    //endregion

    //region 月电价规则

    //当前计费电价规则（月）
    public static final String CHARGERULE_CURRENT_MONTH_KEY = KeyConstants.getPrefix() + "_chargerule_current_month_";

    //endregion

    //region 电价
    //实时电价
    public static final String ELECTRIC_PRICE_TIME = KeyConstants.getPrefix() + "_electric_price_time_";

    //当前是电价的那个阶段（1峰2谷3平4尖）
    public static final String ELECTRIC_TIME_STEP = KeyConstants.getPrefix() + "_electric_time_step_";

    //endregion

    //region 设备档案
    public static final String EQUIPMENT_INFO_KEY_ID = KeyConstants.getPrefix() + "_equipment_id_";
    public static final String EQUIPMENT_INFO_KEY_CODE = KeyConstants.getPrefix() + "_equipment_code_"; //（+entid）
    public static final String EQUIPMENT_LIST_FORMAT = KeyConstants.getPrefix() + "_equipment_list_format_"; //（+entid）

    //设备在线状态：0离线 1在线
    public static final String EQUIPMENT_ONLINE_KEY_ID = KeyConstants.getPrefix() + "_equipment_online_id_";

    //设备开合闸状态：0分闸 1合闸
    public static final String EQUIPMENT_POWER_KEY_ID = KeyConstants.getPrefix() + "_equipment_power_id_";
    //endregion

    //region 监测设备状态（先保持1分钟）
    public static final String EQUIPMENT_STATUS_MONITOR_CODE = KeyConstants.getPrefix() + "_equipment_status_monitor_"; //（+entid）
    //endregion

    //region 用户30天内电量和消费（userid_day）保存12小时
    public static final String ELECTRIC_USENUM_DAY_ID = KeyConstants.getPrefix() + "_electric_usenum_wxapp_";
    public static final String ELECTRIC_USEFEE_DAY_ID = KeyConstants.getPrefix() + "_electric_usefee_wxapp_";
    //endregion

    //region 用户设备24小时内用电量（equipid_hour）保存24小时
    //保存每小时的最大止数
    public static final String ELECTRIC_USENUM_HOUR_LAST = KeyConstants.getPrefix() + "_electric_usenum_hourlast_";

    //保存每小时的消耗量
    public static final String ELECTRIC_USENUM_HOUR_TOTAL = KeyConstants.getPrefix() + "_electric_usenum_hourtotal_";
    //endregion

    //region 用户每天电表最大止数（equipid_day）
    public static final String ELECTRIC_LASTNUM_EVERYDAY_ID = KeyConstants.getPrefix() + "_electric_lastnum_day_";
    //endregion

    //region 设备24小时内【温度】最大值
    public static final String EQUIP_TEMPERATURE_HOUR_MAX = KeyConstants.getPrefix() + "_equip_temperature_hourmax_";
    //endregion

    //region 设备24小时内【温度】最小值
    public static final String EQUIP_TEMPERATURE_HOUR_MIN = KeyConstants.getPrefix() + "_equip_temperature_hourmin_";
    //endregion

    //region 设备24小时内【湿度】最大值
    public static final String EQUIP_HUMIDITY_HOUR_MAX = KeyConstants.getPrefix() + "_equip_humidity_hourmax_";
    //endregion

    //region 设备24小时内【湿度】最小值
    public static final String EQUIP_HUMIDITY_HOUR_MIN = KeyConstants.getPrefix() + "_equip_humidity_hourmin_";
    //endregion

    //region 设备60分钟内【温度】【湿度】值
    public static final String EQUIP_TEMPERATURE_MINUTE_KEY = KeyConstants.getPrefix() + "_equip_temperature_minute_";
    public static final String EQUIP_HUMIDITY_MINUTE_KEY = KeyConstants.getPrefix() + "_equip_humidity_minute_";
    //endregion

    //region 微信公众号

    //公众号Token
    public static final String WX_WXMP_TOKEN_APPID = KeyConstants.getPrefix() + "_wx_wxmp_token_";
    //endregion

    //region 帐户余额不足通知标记
    public static final String SMS_NOTICE_BLANCE_MOBILE = KeyConstants.getPrefix() + "_sms_notice_blance_mobile_";
    //endregion

    //region 曼顿Api接口（Token）
    public static final String MANTUN_TOKEN_KEY = KeyConstants.getPrefix() + "_mantun_token_"; //（+项目ID）
    public static final String MANTUN_REFRESH_TOKEN_KEY = KeyConstants.getPrefix() + "_mantun_refreshtoken_"; //（+项目ID）
    //endregion

    //region 高密水利，德州灌溉
    // 心跳存储时间 8分钟
    public static final String GM_DZ_IRRIGATION_HEART = KeyConstants.getPrefix() + "_gm_dz_irrigation_record_";

    // 是否开泵的标记
    public static final String GM_DZ_IRRIGATION_OPEN = KeyConstants.getPrefix() + "_gm_dz_irrigation_open_";

    //endregion

    //region 报警频率判断
    public static final String IOT_ALARM_FREQUENCY_EQUIPID = KeyConstants.getPrefix() + "_iot_alarm_frequency_id_";
    //endregion

    //region 定位
    public static final String LBS_CAN_GETPOINT = KeyConstants.getPrefix() + "_lbs_can_getpoint_"; //(ent_id)
    //endregion
}
